﻿using System;
using System.Windows.Forms;

#pragma warning disable CA1416 // 验证平台兼容性
namespace ResolutionCalculator
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //AssemblyLoadContext.Default.Resolving += ResolveAssembly;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
        //private static Assembly ResolveAssembly(AssemblyLoadContext assemblyLoadContext, AssemblyName assemblyName)
        //{
        //    string probeSetting = AppContext.GetData("SubdirectoriesToProbe") as string;
        //    if (string.IsNullOrEmpty(probeSetting))
        //    {
        //        return null!;
        //    }

        //    foreach (string subDirectory in probeSetting.Split(';'))
        //    {
        //        string pathMaybe = System.IO.Path.Combine(AppContext.BaseDirectory, subDirectory, $"{assemblyName.Name}.dll");
        //        if (File.Exists(pathMaybe))
        //        {
        //            return assemblyLoadContext.LoadFromAssemblyPath(pathMaybe);
        //        }
        //    }

        //    return null!;
        //}
    }
}
